package cn.micro.eye.commons.qianzhanyun;

import lombok.Data;
import lombok.ToString;
import org.checkerframework.checker.units.qual.A;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * @author laowang
 * @Date 2018/12/6 14:35
 * @Description
 */
@Data
@ToString
@ConfigurationProperties(prefix = "micro.qianzhanyun")
public class QianzhanyunProperties implements Serializable {
    private static final String SYMBOL = "?";
    private static final String AND = "&";
    private String api;
    private String token;
    private String type;
    private String areaCode;
    private String industryCode;

    public String getFullPath() {
        return api + SYMBOL + "token=" + token + AND + "type=" + type + AND + "areaCode=" + areaCode + AND + "industryCode=" + industryCode;
    }
}
